#ifndef _DOWNLOAD_PRO_H
#define _DOWNLOAD_PRO_H
extern _Bool Is_Flag_IAP_ReStart;

typedef enum
{
  UPDATA_TYPE_IOT,
  UPDATA_TYPE_MODOU
    
}UPDATA_TYPE;

typedef  struct
{
	u16 Packet_Index;
	u16 ALL_Packet_Index;
	//u16 Last_Packet_Index;
	u16 ONE_Packet_lenth;
	u16 Surplus_Packet_lenth;
	u8 GET_IOTSOFTWARE[16];
	u8 updata_Surplus[128];
	u16 updata_Surplus_lenth;
	u8 MD2[2];
        _Bool Updata_Type;
}IOTUpdataHead;

extern IOTUpdataHead IOTUpdata;
void DownLoad_Pro(USART_FUNCTION uf,u8 *DaPtr,u16 len);
void DownLoad_send_please21(void);
void DownLoad_send_please24(void);
void DownLoad_send_please22(void);

#endif

